<!DOCTYPE HTML>
<title>Canvas test: 2d.path.isPointInPath.unclosed.arc</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="2d.path.isPointInPath.unclosed.line.html" title="2d.path.isPointInPath.unclosed.line">
<link rel="next" href="2d.path.isPointInPath.winding.html" title="2d.path.isPointInPath.winding">
<body class="show_output">
<p>
 <a href="2d.path.isPointInPath.unclosed.line.html" accesskey="p" title="[p] 2d.path.isPointInPath.unclosed.line">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="2d.path.isPointInPath.winding.html" accesskey="n" title="[n] 2d.path.isPointInPath.winding">&gt;</a>
<h1><a href="index.2d.html">2d</a>.<a href="index.2d.path.html">path</a>.<a href="index.2d.path.isPointInPath.html">isPointInPath</a>.<a href="index.2d.path.isPointInPath.unclosed.html">unclosed</a>.arc</h1>
<p class="desc">isPointInPath() works on unclosed arc subpaths</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.2d.path.isPointInPath">2d.path.isPointInPath</a>

</ul>
</div>

<p class="output">Actual output:</p>
<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>

<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

ctx.arc(50, 25, 10, 0, 7, false);
ctx.stroke();
_assertSame(ctx.isPointInPath(50, 10), false, "ctx.isPointInPath(50, 10)", "false");
_assertSame(ctx.isPointInPath(50, 20), true, "ctx.isPointInPath(50, 20)", "true");
_assertSame(ctx.isPointInPath(50, 30), true, "ctx.isPointInPath(50, 30)", "true");
_assertSame(ctx.isPointInPath(50, 40), false, "ctx.isPointInPath(50, 40)", "false");
_assertSame(ctx.isPointInPath(30, 20), false, "ctx.isPointInPath(30, 20)", "false");
_assertSame(ctx.isPointInPath(70, 20), false, "ctx.isPointInPath(70, 20)", "false");
_assertSame(ctx.isPointInPath(30, 30), false, "ctx.isPointInPath(30, 30)", "false");
_assertSame(ctx.isPointInPath(70, 30), false, "ctx.isPointInPath(70, 30)", "false");


});
</script>

